﻿using System.Diagnostics;

namespace DimensionsHelper.LanguageService.Syntax;

public class SourceNull : PreExpression
{
    internal SourceNull(SourceNode? parent) : base(parent, SyntaxKinds.Null)
    {
    }
}


public static partial class NodeFactory
{
    public static SourceNull CreateSourceNull(SourceNode source)
    {
        Debug.Assert(source.IsNode(SyntaxKinds.NullKeywordToken));
        SourceNull sourceNull = new(null);
        sourceNull.UpdateFrom(source);
        sourceNull.SetFlags(source.GetFlags());
        return sourceNull;
    }
}